<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

// 首页路由
Route::get('/', [HomeController::class, 'index'])->name('home');

// 关于我们页面
Route::get('/about', [HomeController::class, 'about'])->name('about');
Route::get('/domain', [HomeController::class, 'domain'])->name('domain');
Route::get('/layer', [HomeController::class, 'layer'])->name('layer');
Route::get('/case', [HomeController::class, 'case'])->name('case');
Route::get('/news', [HomeController::class, 'news'])->name('news');
Route::get('/contact', [HomeController::class, 'contact'])->name('contact');

// 原来的默认欢迎页
Route::get('/welcome', function () {
    return view('welcome');
});
